import upload from '@/utils/upload'
import request from '@/utils/request'


export function mySellGoods(data) {
	return request({
		'url': '/goods/mySellGoods',
		'method': 'post',
		'data': data
	})
}

export function changeState(id,data) {
	return request({
		'url': '/goods/'+id,
		'method': 'put',
		'data': data
	})
}

export function getMarketList(businessId) {
	return request({
		'url': '/goods/marketList/'+businessId,
		'method': 'get'
	})
}

export function buy(id,data) {
	return request({
		'url': '/goods/'+id,
		'method': 'put',
		'data': data
	})
}

export function myTransaction(userId) {
	return request({
		'url': '/goods/transaction/'+userId,
		'method': 'get'
	})
}